<template>
  <n-text class="flex items-center justify-center h-full">跳转中…</n-text>
</template>

<script setup lang="ts">
import { usePermission, useRouterPush } from '@/composables';

const { hasPermission } = usePermission();
const { routerPush } = useRouterPush();

if (hasPermission(['super', 'admin'])) {
  routerPush('user-manage');
} else {
  routerPush('purchase-list');
}
</script>

<style scoped></style>
